import requests

from common.result_token import Ihrm_token
from config import TEST_ENV


def get_Emp_Id():
    resp = requests.get(url=f"{TEST_ENV}/api/sys/user?page=1&size=10",
                         headers={"Authorization": Ihrm_token()}, json={"mobile": "13800000002", "password": "123456"
                       })

    get_emp_id = resp.json().get('data').get('rows')[1].get('id')

    return get_emp_id



if __name__ == '__main__':
    print(get_Emp_Id())